package com.lanju.service.impl;

import java.util.HashMap;
import java.util.Map;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import com.lanju.dao.SuggestDao;
import com.lanju.service.SuggestService;


@Service
public class SuggestServiceImpl implements SuggestService{

    private static final Logger LOGGER = LoggerFactory.getLogger(SuggestServiceImpl.class);
    
    @Autowired
    SuggestDao suggestDao;
    
	@Override
	 @Transactional(value="financialmarketingTM", rollbackFor = Exception.class)
	public Map<String, Object> insertSuggest(Map<String, Object> param) {
		Map<String, Object> result = new HashMap<String, Object>();
		
		try {
			suggestDao.insertSuggest(param);
			result.put("msg", true);
		} catch (Exception e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
			result.put("msg", false);
		}
		return result;
	}

}
